home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Feb 90 / MacApp.Tech$ 2⁄23⁄90 / 0724-Re OpenNew(itsCmdNum-Feb90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.0 KB  |  27 lines  |  [TEXT/GEOL]

  1. Item    8281229                         20-Feb-90        10:10PST
  2.  
  3. From:   SATORI                          Satori SW, Hugh Rogovy,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. cc:     DAWSON.M                        Dawson, Mark
  8.  
  9. Sub:    RE: OpenNew(itsCmdNumber?);
  10.  
  11. Mark,
  12.  
  13. itsCmdNumber is passed into TApplication.OpenNew, then "filtered" through
  14. TApplication.KindOfDocument, and then passed onto TApplication.DoMakeDocument,
  15. where you will generally have a "CASE itsCmdNumber OF" statement to determine
  16. what type of "new" document to create if your application handles multiple
  17. document types.  If the application was opened sans document (launching the App
  18. directly) then cFinderNew will be passed through to
  19. TApplication.DoMakeDocument, in which case you could create a "default" type of
  20. document or do nothing (or whatever is appropriate for your app).
  21.  
  22. The reason passing in a "random #" didn't have any effect, is that you are
  23. ignoring itsCmdNumber in TApplication.DoMakeDocument.
  24.  
  25. Chris Le Croy
  26.  
  27.